package com.nlp.visualization.controller.jersey.config;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;

/**
 * Created by LXM on 2017/10/13.
 *
 * @author LXM
 * @version 1.0
 * @description 用于配置Jersey的选项
 * @datetime 19:18
 */
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {

        //声明资源包所在位置
        packages("com.guet.careapp.controller.rest");

//        register(ErrorCode.class);
        register(JacksonFeature.class);
        register(JsonContextProvider.class);
    }
}
